package com.cty.pojo;

/**
 * @Auther: cty
 * @Date: 2020/3/1 19:55
 * @Description:  Student实体类
 * @version: 1.0
 */
public class Student {
    private String sno;
    private String sname;
    private String tno;
    private Teacher teacher;

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno='" + sno + '\'' +
                ", sname='" + sname + '\'' +
                ", tno='" + tno + '\'' +
                ", teacher=" + teacher +
                '}';
    }
}
